cmake_minimum_required(VERSION 3.10)

project(checksum)

set(PROJECT_VERSION 1.0.2)
set(CMAKE_BUILD_TYPE Release)
set(CMAKE_MAKE_PROGRAM "make.exe")
set(CMAKE_C_COMPILER "gcc.exe")
set(CMAKE_CXX_COMPILER "g++.exe")

include_directories(src/checksum)
include_directories(src/common)
include_directories(src/crc/crc16)
include_directories(src/crc/crc32)
include_directories(src/hash256)
include_directories(src/hash512)
include_directories(src/md5)
include_directories(src/sha1)
include_directories(src/log)

aux_source_directory(src/checksum CHECKSUM)
aux_source_directory(src/common COMMON)
aux_source_directory(src/crc/crc16 CRC16)
aux_source_directory(src/crc/crc32 CRC32)
aux_source_directory(src/hash256 HASH256)
aux_source_directory(src/hash512 HASH512)
aux_source_directory(src/md5 MD5)
aux_source_directory(src/sha1 SHA1)
aux_source_directory(src/log LOG)
aux_source_directory(src MAIN)

add_executable(checksum ${CHECKSUM}
                        ${COMMON}
                        ${CRC16}
                        ${CRC32}
                        ${HASH256}
                        ${HASH512}
                        ${MD5}
                        ${SHA1}
                        ${LOG}
                        ${MAIN})
